package com.practice.car.cardataapp.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * car
 * @author
 */
@Data
public class Car implements Serializable {
    @TableId
    private Integer id;

    private String name;

    private String type;

    private String national;

    private String brand;

    private String month;

    private Integer sales;

    private Double price;

    private static final long serialVersionUID = 1L;

    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + name.hashCode();
        result = 31 * result + type.hashCode();
        result = 31 * result + national.hashCode();
        result = 31 * result + brand.hashCode();
        result = 31 * result + month.hashCode();
        return result;
    }
}
